import Request from "../../core";

export const getUserBaseInfo = () => {
  return Request.get("/pubDomainApp/mobile/shop/getPubCustomer", null, {
    // return Request.get("/memberApp/member/base_info", null, {
    isLoading: false,
    callbackOptions: {
      // 请求返回选项
      all: false, // 返回全部
      errorAll: false, // 失败返回全部
    },
  });
};

export const updatePubUserPhone = (data) => {
  return Request.get(
    `/pubDomainApp/pubDomainCustomer/updatePubUserPhone?encryptedData`,
    data,
    {
      isLoading: true,
      callbackOptions: {
        // 请求返回选项
        all: true, // 返回全部
        errorAll: true, // 失败返回全部
      },
    }
  );
};

export const getMyBalanceNum = (data) => {
  return Request.get(`/balanceApp/phone/getCustomerAllBalanceNum`, data);
};
export const getMyCouponCount = (data) => {
  return Request.get(`/pub/couponMove/getMyCouponCount`, data);
};
export const getAuthPhone = (data) => {
  return Request.post(`/wifi_anonApp/getAuthPhone`, data);
  // return Request.post(`/wifi_app/getAuthPhone`, data);
};
